package notice.dao;

import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.util.Date;

public class NoticeVO implements Serializable {
    private int type;               //类型
    private String range;           //发布范围
    private String content;         //内容
    private String title;           //标题
    private long createTim;         //创建时间
    private MultipartFile file1;      //图片
    private MultipartFile file2;
    private MultipartFile file3;
    private MultipartFile file4;
    private MultipartFile file5;
    private MultipartFile file6;
    private int hasOper = 0;//是否有操作按钮
    private int isOper;//是否已操作
    private long contentId;
    private int saveMain = 1;           //默认数据存主表 0不存主表

    public int getSaveMain() {
        return saveMain;
    }

    public void setSaveMain(int saveMain) {
        this.saveMain = saveMain;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getRange() {
        return this.range;
    }

    public void setRange(String range) {
        this.range = range;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public long getCreateTim() {
        if (this.createTim <= 0L) {
            this.createTim = new Date().getTime();
        }
        return this.createTim;
    }

    public void setCreateTim(long createTim) {
        this.createTim = createTim;
    }

    public int getIsOper() {
        return this.isOper;
    }

    public void setIsOper(int isOper) {
        this.isOper = isOper;
    }

    public MultipartFile getFile1() {
        return this.file1;
    }

    public void setFile1(MultipartFile file1) {
        this.file1 = file1;
    }

    public MultipartFile getFile2() {
        return this.file2;
    }

    public void setFile2(MultipartFile file2) {
        this.file2 = file2;
    }

    public MultipartFile getFile3() {
        return this.file3;
    }

    public void setFile3(MultipartFile file3) {
        this.file3 = file3;
    }

    public MultipartFile getFile4() {
        return this.file4;
    }

    public void setFile4(MultipartFile file4) {
        this.file4 = file4;
    }

    public MultipartFile getFile5() {
        return this.file5;
    }

    public void setFile5(MultipartFile file5) {
        this.file5 = file5;
    }

    public MultipartFile getFile6() {
        return this.file6;
    }

    public void setFile6(MultipartFile file6) {
        this.file6 = file6;
    }

    public int getHasOper() {
        return this.hasOper;
    }

    public void setHasOper(int hasOper) {
        this.hasOper = hasOper;
    }

    public long getContentId() {
        return this.contentId;
    }

    public void setContentId(long contentId) {
        this.contentId = contentId;
    }
}
